function f = new_eq_tt(tax,mc_cf,theta2,ind_market,x2,tax_ava, delta, QI,FC,total_market2,ss,v,year)

FC_i=FC(:,ss);
cf_salestax=ones(size(delta))*0.19;
tariff_cf=(ones(size(delta))*0.35);
tariff_cf(tax_ava)=tax;
m0=mc_cf.*(1+tariff_cf); 
p0=(m0.*(1+cf_salestax));
expmu0=expmu(theta2,v,x2,p0./1000);
sj_0=mktshares(delta,expmu0,QI,ind_market);
sim_un=round(sj_0.*total_market2(ind_market,2),0);
st_0=sim_un.*(m0./1000.*(cf_salestax));
tt_0=sim_un.*(mc_cf./1000.*(tariff_cf));
total_0=tt_0+st_0;
tmp=find(year>=2019);
f=abs(sum(FC_i(tmp,:))*1000-sum(total_0(tmp,:))*1000);
end